package xju_3_4.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;
import xju_3_4.entity.User;

@Repository
@Mapper
public interface UserMapper {
    @Select("select * from user where username =#{username} and password=#{password}")
    User login(@Param("username") String username,@Param("password") String password);
}
